package org.paul.gotobplan;

import android.app.Application;
import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.EApplication;

import java.util.ArrayList;
import java.util.List;

@EApplication
public class App extends Application {

    private final List<BaseAct> baseActList = new ArrayList<>();

    @AfterInject
    void afterInject() {
    }

    public boolean addAct(BaseAct baseAct) {
        if (!baseActList.contains(baseAct)) {
            return baseActList.add(baseAct);
        }
        return false;
    }

    public boolean removeAct(BaseAct baseAct) {
        if (baseActList.contains(baseAct)) {
            return baseActList.remove(baseAct);
        }
        return false;
    }

}
